package com.fish.admin.module.system.service;

import com.fish.admin.module.system.enums.AuthorityTypeEnum;
import com.fish.admin.module.system.enums.SubjectTypeEnum;
import com.fish.common.core.base.AuthorizationInfo;

import java.util.List;

public interface SysAuthorityService {
    AuthorizationInfo authorization();

    void grant(Long id, SubjectTypeEnum subjectTypeEnum, List<Long> menuIds, AuthorityTypeEnum authorityTypeEnum);

    List<Long> authorize(Long roleId, SubjectTypeEnum subjectTypeEnum);
}
